/*!
* @author @huntbao
* @left menu item view
*/
App.Views.leftMenuItemView = App.Views.itemView.extend({
    template : tpl.leftMenuItem,
    
    tagName: 'li',
    
    className: 'nav-list-item',
    
    initialize: function(){
       var self = this;
       self.model.bind('change', self.render, self);
    },
    
    render: function(){
        var self = this;
        self.model.set({uiId: self.model.get('id')}, {silent: true});
        self.model.set({uiName: self.model.get('name')}, {silent: true});
        self.model.set({uiUrl: self.model.get('url')}, {silent: true});
        self.$el.html(Mustache.to_html(self.template, self.model.toJSON())).attr('title', self.model.get('uiName'));
        return self;
    }
});
